/*
 * @Author: coollin
 * @Date: 2021-04-06 19:31:13
 * @LastEditTime: 2021-08-24 10:28:21
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \code\project-admin-api\routes\index.js
 */

// 引入Express对象
var express = require ('express');
// 引入路由对象
var router = express.Router ();
// 引入我们自定义的controller
const IndexController = require('../controllers/index');
// 定义登录路由，POST请求
router.post ('/login', IndexController.login);
// 导出路由，供app.js文件调用
module.exports = router;